dicts = {
    "literaInfo.nrdAn": "TW107212655",
    "literaInfo.nrdPn": "TWM569680",
    "literaInfo.fn": ""
}


def get_content_length(data):
    """
    Content-Length 长度计算
    :param data:
    :return:
    """
    length = len(data.keys()) * 2 - 1
    total = ''.join(list(data.keys()) + list(data.values()))
    length += len(total)
    return length

print(get_content_length(dicts))